lib/sysroot: Add non-failable ostree_sysroot_repo()
authorColin Walters <walters@verbum.org>
Thu, 25 May 2017 23:38:52 +0000 (19:38 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 26 May 2017 19:17:59 +0000 (19:17 +0000)
commit9bf8a8503afa5cc7acacc8203490330292da7f85
tree5c124a0894f4f9e3f55678791c92ed90ad29ba2b
parented430b45de6e298ee573dbeccd88d75057a41c6d
lib/sysroot: Add non-failable ostree_sysroot_repo()

Having a failable accessor is annoying, since it's really common
to reference both.  Instead, open the repo once when we load
the sysroot, and provide a non-failable accessor.

This is also prep for `ostree_repo_open_at()`, which collapses the separation
between `ostree_repo_new()` and `ostree_repo_open()`.

Closes: #886
Approved by: jlebon
apidoc/ostree-sections.txt
src/libostree/libostree.sym
src/libostree/ostree-sysroot-cleanup.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/libostree/ostree-sysroot.h